package com.glela.order.model.vo.order;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 用户订单红包
 * @author zls
 *
 */
public class UserRedPacketVo implements Serializable {
	private static final long serialVersionUID = -8549696481901009733L;

	private int		redPacketId;	//红包id
	private int		ownerId;		//拥有记录id
	private long	amount;			//金额（分）
	private long	giftType;		//赠送类型：0：分享退回；1：分享领取 ; 2：系统赠送；3：邀请人赠送；4：新用户奖励
	private String	userType;		//赠送人标签
	private String	nickName;		//赠送人昵称
	private String	title;			//红包标题
	private Date	startTime;		//有效期-开始时间
	private Date	endTime;		//有效期-结束时间
	private Date	ownTime;		//领取时间
	private Date	backTime;		//退回时间

	public int getRedPacketId() {
		return redPacketId;
	}

	public void setRedPacketId(int redPacketId) {
		this.redPacketId = redPacketId;
	}

	public int getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}

	public long getAmount() {
		return amount;
	}

	public void setAmount(long amount) {
		this.amount = amount;
	}

	public long getGiftType() {
		return giftType;
	}

	public void setGiftType(long giftType) {
		this.giftType = giftType;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	@JsonInclude(Include.NON_NULL)
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getOwnTime() {
		return ownTime;
	}

	public void setOwnTime(Date ownTime) {
		this.ownTime = ownTime;
	}

	@JsonInclude(Include.NON_NULL)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getBackTime() {
		return backTime;
	}

	public void setBackTime(Date backTime) {
		this.backTime = backTime;
	}

}